<html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<script type="text/javascript" src="../jct.js"></script>
<title>jCT Example,嵌入模板简化方案</title>
<script type="text/javascript">
function walkjCT(node){
	if (undefined===node) node=document.body;
	var ins,n=node.firstChild;
	while(n){
		if(n.nodeType==8 && n.nodeValue.slice(0,1)=='-'){
			node.innerHTML=(new jCT(node.innerHTML)).Build().GetView();
			return;
		}
		if (n.nodeType==1)
			walkjCT(n);
		n=n.nextSibling;
	}
}
</script>
</head>
<body>
<p>关于这个方案的文章参见
<a href="http://achun.javaeye.com/blog/266437" target="_blank">jCT 嵌入模板简化方案</a></p>
<p>下面是模板运行结果<button onclick="walkjCT();">执行</button></p>
<ul>
	<!---for(var i=65;i<=90;i++){-->
	<li style="float:left;list-style-type:none;" id="id+-i-+">
		<span style="margin:4px;">+-String.fromCharCode(i)-+</span>
	</li>
	<!---}-->
</ul>
</body>
</html>